package cn.itsource.org.domain;

import cn.itsource.basic.domain.baseDomain;
import cn.itsource.basic.util.BaseConstants;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.util.Date;

/**
 * 店铺类
 */
@Data
@NoArgsConstructor
@Table(name = "t_shop")
@ApiModel(value = "店铺实体类")
public class Shop extends baseDomain {
//    店名
    private String name ;
//    电话
    private String tel ;
//    注册时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date registerTime = new Date();
//    状态
    private Integer state = BaseConstants.Shop.STATE_WAIT_AUTID;
//    地址
    private String address ;
//     logo
    private String logo ;
    /** 店铺管理 **/
    private Employee admin;

}
